<script>
import instance from "../utils/request";

export default {
  methods: {
    getMenuList() {
      try {
        const res = instance.get("/tree");
        /*if (!res.data.success) {
          return this.$message.error("获取菜单失败:" + res.data.msg);
        }*/
        this.menuList = res.data;
        console.log(res.data)
      } catch (error) {
        this.$message.error("获取菜单失败:" + error.message);
      }
    }
  },
  created() {
    this.getMenuList()
  }
}
</script>

<template>
    <div>登录</div>
</template>

<style>
</style>
